package com.sdy.resdir.biz.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sdy.common.model.BaseModel;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 数据源配置
 * </p>
 *
 * @author cgj
 * @since 2019-12-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="RdDbDict对象", description="数据源配置")
public class RdDbDict extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * 库id
     */
    @ApiModelProperty(value = "库id")
    @TableId
    private Integer dbId;

    /**
     * 库描述
     */
    @ApiModelProperty(value = "库描述")
    private String dbDesc;

    /**
     * ip地址
     */
    @ApiModelProperty(value = "ip地址")
    private String dbIp;

    /**
     * 端口
     */
    @ApiModelProperty(value = "端口")
    private Integer dbPort;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    private String dbUser;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    private String dbPasswd;

    /**
     * 数据库名
     */
    @ApiModelProperty(value = "数据库名")
    private String dbName;

    /**
     * 数据库类型
     */
    @ApiModelProperty(value = "数据库类型")
    private String dbType;

    /**
     * 所属部门id
     */
    @ApiModelProperty(value = "所属部门id")
    private Integer deptId;

    /**
     * 所属部门名称
     */
    @ApiModelProperty(value = "所属部门名称")
    private String deptName;

    /**
     * 所属部门名称
     */
    @ApiModelProperty(value = "itemId")
    @TableField(exist = false)
    private String itemId;

}
